package com.yami.shop.vo.message.message;

import com.yami.shop.vo.advice.AdviceTxtVo;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;
import java.util.List;

/**
 * 消息-发送单聊消息-状态消息
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class StatusMessageVo implements Serializable {

    @NotEmpty(message = "发送人id不能为空")
    @Schema(description = "发送人id", required = true)
    private String senderId;

    @NotEmpty(message = "接收方不能为空")
    @Schema(description = "接收方id", required = true)
    private List<String> targetId;

    @Schema(description = "消息类型(RC:TypSts：对方正在输入状态消息、RC:ReadNtf：单聊已读通知消息、RC:RRReqMsg：群已读状态请求消息、RC:RRRspMsg：群已读通知消息、RC:SRSMsg：多端已读状态同步消息 )", required = true)
    private String objectName = "RC:TypSts";

    @Schema(description = "发送消息的内容")
    private AdviceTxtVo contentVo;
}
